<h1>Listing maquina_virtuals</h1>

<table>
  <tr>
    <th>Clock</th>
    <th>Memoriaprimaria</th>
    <th>Memoriasecundaria</th>
    <th>Especoarmaenamento</th>
    <th>Nome</th>
	<th>Maquina Fisica</th>
    <th>Sistemaoperacional</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @maquina_virtuals.each do |maquina_virtual| %>
  <tr>
    <td><%= maquina_virtual.clock %></td>
    <td><%= maquina_virtual.memoriaprimaria %></td>
    <td><%= maquina_virtual.memoriasecundaria %></td>
    <td><%= maquina_virtual.especoarmaenamento %></td>
    <td><%= maquina_virtual.nome %></td>
	<td><%= maquina_virtual.maquina_fisica.nome unless maquina_virtual.maquina_fisica_id.nil? %></td>
    <td><%= maquina_virtual.sistemaoperacional %></td>
    <td><%= link_to 'Show', maquina_virtual %></td>
    <td><%= link_to 'Edit', edit_maquina_virtual_path(maquina_virtual) %></td>
    <td><%= link_to 'Destroy', maquina_virtual, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Maquina virtual', new_maquina_virtual_path %></br>
<%= link_to 'Voltar', 'home/index' %>
